package com.own.business.resource.core.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * UploadResultModel
 *
 * @author chenxueli
 * @date 2023-07-07 15:04:56
 */
@Schema(title = "文件导入导出类")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder(builderClassName = "Builder")
public class UploadResultModel implements Serializable {

    @Schema(title = "文件名称")
    private String name;

    @Schema(title = "文件原名称")
    private String oldName;

    @Schema(title = "文件地址（相对路径）")
    private String path;

    @Schema(title = "文件位置")
    private String position;

    @Schema(title = "文件类型")
    private String type;

    @Schema(title = "文件大小（字节）")
    private Long size;

    @Schema(title = "文件的md5值")
    private String md5;

}
